{% extends "base.html" %}

{% block body %}

<ol class="breadcrumb">
  <li>管理</li>
  <li class="active">行为日志</li>
</ol>

<div class="page-header">
    <h2>
      行为日志
    </h2>
</div>

<table class="table">
<caption>
<form class="form-inline" style="float: right;" action="/action_log/action_log_list" method="post">
 {% csrf_token %}
  <div class="form-group">
    <p class="form-control-static">
        <select class="form-control" name="filter_select">
          <option>用户 =</option>
          <option>具体</option>
        </select>
    </p>
    <input type="text" class="form-control" name="filter_keyword" placeholder="">
  </div>
  <button type="submit" class="btn btn-default"><span class="fa fa-filter"></span> 过滤</button>
  <div class="btn-group">
  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    更多 <span class="caret"></span>
  </button>
  <ul class="dropdown-menu dropdown-menu-right">
    <li><a href="#">删除</a></li>
    <li><a href="#">其他</a></li>
  </ul>
</div>
</form>
</caption>
    <tr>
        <td colspan="12" data-column="0">
            <span class="table_count">显示 {{ curent_page_size }} / {{ action_log.paginator.count }} 项</span>
        </td>
    </tr>
    <tr class="active">
        <th width="20%">时间</th>
        <th width="15%">用户</thw>
        <th width="65%">具体</th>
    </tr>
    {% for log in action_log %}
    <tr>
        <td>{{log.log_time}}</td>
        <td>{{log.log_user}}</td>
        <td>{{log.log_detail}}</td>
    </tr>
    {% endfor %}
    <tr>
        <td colspan="12" data-column="0">
            <span class="table_count">显示 {{ curent_page_size }} / {{ action_log.paginator.count }} 项</span>
        </td>
    </tr>
</table>

<div>
  <span style="text-align:center; display:block;">
    <a>
        {% if action_log.has_previous %}
            <a style="text-decoration:underline; color:inherit;" href="{{ page_prefix }}{{ action_log.previous_page_number }}">Previous</a>
        {% endif %}
    </a>
    <a style="color:inherit;">&nbsp; < {{ action_log.number }} / {{ action_log.paginator.num_pages }} > &nbsp;</a>
    <a>
        {% if action_log.has_next %}
            <a style="text-decoration:underline; color:inherit;" href="{{ page_prefix }}{{ action_log.next_page_number }}">Next</a>
        {% endif %}
    </a>
  </span>
</div>
{% endblock %}